package json;

import java.util.List;

/**
 * User: lyj
 * Date: 2011-12-29
 * Time: 17:53:05
 */
public class ListMyCurvesObj {

    /**
     * 1 表示正常返回 目前用户用户获取协议信息。
     */
    private int flagNum;
    private String msg;
    private CurveObj[] curveArray;

    public ListMyCurvesObj() {
    }

    public ListMyCurvesObj( int flagNum, String msg) {
        this.flagNum=flagNum;
        this.msg=msg;
    }


    public int getFlagNum() {
        return flagNum;
    }

    public void setFlagNum(int flagNum) {
        this.flagNum = flagNum;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


    public CurveObj[] getCurveArray() {
        return curveArray;
    }

    public void setCurveArray(CurveObj[] curveArray) {
        this.curveArray = curveArray;
    }

    public void setCurveArrayByList(List<CurveObj> curveList) {
        curveArray=new CurveObj[curveList.size()];
        curveList.toArray(curveArray);
    }
}
